<template>
	<view>
		<navigator v-for="g in games" :url="g.url" hover-class="navigator-hover">
			<button class="parsing">{{g.name}}</button>
		</navigator>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				games:[{name:"双人五子棋",url:"wuziqi/index"},
				{name:"别踩白块",url:"whileBlock/whileBlock"},
				{name:"踩白块(挑战模式)",url:"whileBlock/whileBlockAuto"},
				{name:"打地鼠",url:"whileBlock/hamster"},
				{name:"2048",url:"KDC2048/index"}
				]
			}
		},
		onShareAppMessage(res) {
			return {
				title: '去除水印小工具',
				path: '/pages/examination/index?invitation='+this.$store.state.userInfo.id
			}
		},
		onShareTimeline(res) {
			return {
				title: '去除水印小工具',
				path: '/pages/examination/index?invitation='+this.$store.state.userInfo.id
			}
		},
		onLoad(e) {
			//#ifdef MP
			wx.showShareMenu({
			  withShareTicket: true,
			  menus: ['shareAppMessage', 'shareTimeline']
			})
			//#endif
		},
		methods: {
		}
	}
</script>

<style>
	
	button {
	    margin-bottom: 30rpx;
	}
	
	.parsing {
	    overflow: hidden;
	    display: block;
	    width: 664rpx;
	    height: 88rpx;
	    line-height: 88rpx;
	    color: #fff;
	    background-color: #337aff;
	    box-shadow: 0 14rpx 28rpx rgba(51,122,255,0.3);
	}
</style>

